/**
 * 
 */
package com.zzy.demo;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 声明这个类之后将项目打为war包时不必再编写额外web.xml文件
 * @author guokaige
 *
 */
public class HelloWebXml extends SpringBootServletInitializer {  
    @Override  
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {  
        return application.sources(DemoApplication.class);  
    }  
  
} 
